package com.time.sky.service;

import com.time.sky.entity.Bank;
import com.time.sky.mapper.BankMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BankServiceImpl implements BankService {
    @Autowired
    private BankMapper bankMapper;
    @Override
    public List<Bank> queryBank() {
       return  bankMapper.queryBank();
    }

    @Override
    public void addBank(Bank bank) {
        bankMapper.addBank(bank);
    }

    @Override
    public int getCount1(Bank bank) {
        return bankMapper.getCount1(bank);
    }

    @Override
    public Bank updateBank(Bank bank) {
        return bankMapper.updateBank(bank);
    }
}
